<div class="top_tit"><span ng-click="reback()">上一页</span>&nbsp;&nbsp;&nbsp;>>&nbsp;&nbsp;&nbsp;<a href="{{webUrl}}" target="_blank">{{webName}}</a></div>
<div class="table_content">
    <div class="content_top">
        <span>广告列表</span>
        <button ng-click="dateData(0)" ng-class="{cur:dateTab[0]}">今天</button>
        <button ng-click="dateData(-1)" ng-class="{cur:dateTab[1]}">昨天</button>
        <button ng-click="dateData(-2)" ng-class="{cur:dateTab[2]}">前天</button>
    </div>
    <div class="searchForm">
        <div class="search-ground"><input type="text" ng-model="search_name" placeholder="查询广告词"></div>
        <div class="search-ground"><input type="text" onclick="WdatePicker()" id="search_start" placeholder="开始时间"></div>
        <div class="search-ground"><input type="text" onclick="WdatePicker()" id="search_end" placeholder="结束时间"></div>
        <div class="search-ground"><label>类型</label><select ng-model="search_type" ng-options="type.value as type.name for type in adTypes"></select></div>
        <div class="search-ground"><button ng-click="search()">查询</button></div>
    </div>
    <div class="searchForm">
        <div class="search-ground"><label>广告词</label><input type="text" ng-model="add_ad" placeholder="输入广告词"></div>
        <div class="search-ground"><label>类型</label><select ng-model="ad_type" ng-options="type.value as type.name for type in adTypes"></select></div>
        <div class="search-ground"><button ng-click="add()">添加</button></div>
    </div>
    <div class="table_main">
        <table>
            <thead>
            <tr>
                <th>序号</th>
                <th>广告词</th>
                <th>类型</th>
                <th>预计单价(元)</th>
                <th>时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody ng-cloak>
            <tr ng-repeat="list in tableData" ng-class="{'grey':($index%2)!=0}">
                <td>{{(page.page-1)*10+$index+1}}</td>
                <td>{{list.name}}</td>
                <td>{{list.type | typefilter}}</td>
                <td>{{list.price}}</td>
                <td>{{list.date}}</td>
                <td class="table-btns">
                    <span class="share" ng-class="{shared:list.share==1}" title="{{list.share==1?'已分享':'分享'}}" ng-click="share(list._id,list.share,$index)">{{list.share==1?'已分享':'分享'}}</span>
                    <span class="modify" ng-click="modify($index)">修改</span>
                    <span class="delete" ng-click="delete(list._id)">删除</span>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <my-pagination></my-pagination>
</div>